package com.swagger.wen.Exception;

/**
 * 自定义异常类
 * Created by Think on 2018/6/16.
 */
public class MyException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private String errorCode;

    public MyException(String msg){
        super(msg);
    }

    public MyException(String errorCode, String msg) {
        super(msg);
        this.errorCode = errorCode;
    }

    public MyException(String errorCode, String msg, Throwable cause) {
        super(msg, cause);
        this.errorCode = errorCode;
    }
}
